/**
 * Generate time : 2011-06-27 5:55:00
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCC5examineCondition
 * 
 */
public class ZMCC5examineCondition extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdOrgId = " "; /* 组织机构ID */
	private String fdYear = " "; /* 年份 */
	private String fdMonth = " "; /* 月份 */
	private Float fdTrainingStarttime = new Float(0); /* 最终得分 */
	private String fdRemark = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdOrgId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("组织机构ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdYear");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("年份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMonth");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("月份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingStarttime");
		eiColumn.setType("N");
		eiColumn.setScaleLength(1);
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("最终得分");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCC5examineCondition() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdOrgId - 组织机构ID
	 * 
	 * @return the fdOrgId
	 */
	public String getFdOrgId() {
		return this.fdOrgId;
	}

	/**
	 * set the fdOrgId - 组织机构ID
	 */
	public void setFdOrgId(String fdOrgId) {
		this.fdOrgId = fdOrgId;
	}

	/**
	 * get the fdYear - 年份
	 * 
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}

	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}

	/**
	 * get the fdMonth - 月份
	 * 
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}

	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}

	/**
	 * get the fdTrainingStarttime - 最终得分
	 * 
	 * @return the fdTrainingStarttime
	 */
	public Float getFdTrainingStarttime() {
		return this.fdTrainingStarttime;
	}

	/**
	 * set the fdTrainingStarttime - 最终得分
	 */
	public void setFdTrainingStarttime(Float fdTrainingStarttime) {
		this.fdTrainingStarttime = fdTrainingStarttime;
	}
	
	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdOrgId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOrgId")), fdOrgId));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdTrainingStarttime(NumberUtils.toFloat(StringUtils.toString(map.get("fdTrainingStarttime")), fdTrainingStarttime));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdOrgId", StringUtils.toString(fdOrgId, eiMetadata.getMeta("fdOrgId")));
		map.put("fdYear", StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));
		map.put("fdMonth", StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));
		map.put("fdTrainingStarttime", StringUtils.toString(fdTrainingStarttime, eiMetadata.getMeta("fdTrainingStarttime")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));

		return map;

	}
}